import { applyMiddleware, legacy_createStore as createStore } from 'redux'
import rootReducer from './reducer/index'
import thunk from 'redux-thunk'
import { composeWithDevTools } from 'redux-devtools-extension'

const middlewares = composeWithDevTools(applyMiddleware(thunk))
const store = createStore(rootReducer, middlewares)


export default store